package com.moss.web;


import com.moss.common.core.BaseController;
import com.moss.common.domain.AjaxResult;
import com.moss.common.util.GiteeImageBedUtil;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("gitee")
public class GiteeController extends BaseController {


    @PostMapping("/uploadImage")
    public AjaxResult<String> uploadImage(@RequestParam MultipartFile file){
        return AjaxResult.success(GiteeImageBedUtil.upload(file));
    }
}
